namespace com.SFA.Server.Entity  {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("WAREHOUSE_VOUCHER_LINE")]
    public class WAREHOUSE_VOUCHER_LINE : ObjectRow {
        
        public WAREHOUSE_VOUCHER_LINE() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public WAREHOUSE_VOUCHER_LINE(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected WAREHOUSE_VOUCHER_LINE(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }

        [Field("WARE_ID")]
        public decimal WAREID
        {
            get
            {
                return (System.Decimal)GetValue("WAREID");
            }
            set
            {
                SetValue("WAREID", value);
            }
        }
        
        [Field("VOUCHER_LINE_CODE")]
        public string VOUCHERLINECODE {
            get {
                return (System.String)GetValue("VOUCHERLINECODE");
            }
            set {
                SetValue("VOUCHERLINECODE", value);
            }
        }
        
        [Field("VOUCHER_CODE")]
        public string VOUCHERCODE {
            get {
                return (System.String)GetValue("VOUCHERCODE");
            }
            set {
                SetValue("VOUCHERCODE", value);
            }
        }
        
        [Field("PRODUCT_ID")]
        public decimal PRODUCTID {
            get {
                return (System.Decimal)GetValue("PRODUCTID");
            }
            set {
                SetValue("PRODUCTID", value);
            }
        }
        
        [Field("QUANTITY")]
        public decimal QUANTITY {
            get {
                return (System.Decimal)GetValue("QUANTITY");
            }
            set {
                SetValue("QUANTITY", value);
            }
        }
        
        [Field("UNIT")]
        public string UNIT {
            get {
                return (System.String)GetValue("UNIT");
            }
            set {
                SetValue("UNIT", value);
            }
        }
        
        [Field("CONVERSION_FACTOR")]
        public decimal CONVERSIONFACTOR {
            get {
                return (System.Decimal)GetValue("CONVERSIONFACTOR");
            }
            set {
                SetValue("CONVERSIONFACTOR", value);
            }
        }
        
        [Field("PIECE_PRICE")]
        public decimal PIECEPRICE {
            get {
                return (System.Decimal)GetValue("PIECEPRICE");
            }
            set {
                SetValue("PIECEPRICE", value);
            }
        }
        
        [Field("LINE_AMOUNT")]
        public decimal LINEAMOUNT {
            get {
                return (System.Decimal)GetValue("LINEAMOUNT");
            }
            set {
                SetValue("LINEAMOUNT", value);
            }
        }
        
        [Field("OPERATOR_ID")]
        public decimal OPERATORID {
            get {
                return (System.Decimal)GetValue("OPERATORID");
            }
            set {
                SetValue("OPERATORID", value);
            }
        }
        
        [Field("ACTIVE")]
        public bool ACTIVE {
            get {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set {
                SetValue("ACTIVE", value);
            }
        }
        
        [Field("DOMAIN_ID")]
        public decimal DOMAINID {
            get {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set {
                SetValue("DOMAINID", value);
            }
        }
        
        [Field("LAST_UPDATER")]
        public string LASTUPDATER {
            get {
                return (System.String)GetValue("LASTUPDATER");
            }
            set {
                SetValue("LASTUPDATER", value);
            }
        }
        
        [Field("LAST_UPDATE_TIME")]
        public decimal LASTUPDATETIME {
            get {
                return (System.Decimal)GetValue("LASTUPDATETIME");
            }
            set {
                SetValue("LASTUPDATETIME", value);
            }
        }
        
        [Field("CREATE_TIME")]
        public decimal CREATETIME {
            get {
                return (System.Decimal)GetValue("CREATETIME");
            }
            set {
                SetValue("CREATETIME", value);
            }
        }
    }
}
